package demoAnimal;

interface Animal{
    public static final int age1 = 10;
    static final int age2 = 10;
    final int age3 = 10;
    int age4 = 10;

    //注意：在接口中，上述成员变量写法都正确，更推荐age4的写法，代码更简洁
    public abstract void method1();
    abstract void method2();
    public void method3();
    void method4();

    //注意：在接口中，上述写法都是抽象方法，更推荐方法4，代码更简洁
}
public class demo {
}
